class GetQueryParams():

    def get_query_params(self, request, input_list):
        query_params = request.query_params
        input_dict = {}
        for lis in input_list:
            if lis[1].endswith('__in'):
                data = query_params.getlist(lis[0])
            else:
                data = query_params.get(lis[0])
            if data:
                if isinstance(data, str):
                    input_dict[lis[1]] = data.strip()
                else:
                    input_dict[lis[1]] = data
        return input_dict
